import { Controller, Post, Body } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { ChatGptService } from './chat-gpt.service';
import { SupChatGptDto } from './dto/sup-chat-gpt.dto';

@Controller('chat-gpt')
@ApiTags('ChatGPT of Supcon')
export class ChatGptController {
  constructor(private readonly chatGptService: ChatGptService) {}

  @Post('SupGPT')
  getSupGPTResponse(@Body() supChatGptDto: SupChatGptDto) {
    return this.chatGptService.getSupGPTResponse(supChatGptDto);
  }
}
